        .leaflet-bottom.leaflet-right {
            margin-bottom: 25px;
            margin-right: 10px;
        }
        
        #map {
            height: calc(100dvh - 64px);
            z-index: 1;
        }
        .custom-popup .leaflet-popup-content-wrapper {
            background: #1f2937;
            color: #ffffff;
            border-radius: 12px;
            padding: 4px;
            border: 1px solid #f43f5e;
        }
        .custom-popup .leaflet-popup-tip {
            background: #1f2937;
            border: 1px solid #f43f5e;
        }
        .custom-scrollbar::-webkit-scrollbar {
            width: 6px;
        }
        .custom-scrollbar::-webkit-scrollbar-track {
            background: rgba(31, 41, 55, 0.5);
            border-radius: 8px;
        }
        .custom-scrollbar::-webkit-scrollbar-thumb {
            background: rgba(244, 63, 94, 0.5);
            border-radius: 8px;
        }
        .custom-scrollbar::-webkit-scrollbar-thumb:hover {
            background: rgba(244, 63, 94, 0.8);
        }

        body.light-theme {
            background-color: #f3f4f6 !important;
            color: #1f2937 !important;
        }
        body.light-theme header {
            background-color: #ffffff !important;
            border-color: #e5e7eb !important;
        }
        body.light-theme #add-marker-panel {
            background-color: rgba(255, 255, 255, 0.95) !important;
            border-color: #e5e7eb !important;
            color: #1f2937 !important;
        }
        body.light-theme #add-marker-panel .bg-gray-900\/50 {
            background-color: #f3f4f6 !important;
            border-color: #e5e7eb !important;
        }

        body.light-theme #add-marker-panel input[type="checkbox"] {
            background-color: #ffffff !important;
            border-color: #d1d5db !important;
        }

        body.light-theme #add-marker-panel .text-gray-400 {
            color: #6b7280 !important;
        }

        body.light-theme #add-marker-panel .text-rose-400\/80 {
            color: #e11d48 !important;
        }

        body.light-theme .custom-popup span.text-gray-200 {
            color: #1f2937 !important;
        }

        body.light-theme .custom-popup .bg-gray-800\/80 {
            background-color: #f3f4f6 !important;
            border-color: #e5e7eb !important;
        }

        body.light-theme .custom-popup .bg-gray-800\/80 .text-gray-200 {
            color: #374151 !important;
        }

        body.light-theme .custom-popup span.text-\[8px\] {
            color: #6b7280 !important;
        }

        body.light-theme .custom-popup .text-gray-300 {
            color: #4b5563 !important; 
        }

        body.light-theme .custom-popup .border-gray-700\/50 {
            border-color: #e5e7eb !important;
        }

        body.light-theme [id^="palette-"] {
            background-color: #ffffff !important;
            border-color: #e5e7eb !important;
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1) !important;
        }

        body.light-theme [id^="palette-"] button {
            background-color: #f9fafb !important;
            border-color: #e5e7eb !important;
        }

        body.light-theme [id^="palette-"] button:hover {
            background-color: #f3f4f6 !important;
            border-color: #e11d48 !important;
        }

        body.light-theme select,
        body.light-theme textarea {
            background-color: #f9fafb !important;
            border-color: #d1d5db !important;
            color: #111827 !important;
        }
        body.light-theme .custom-popup .leaflet-popup-content-wrapper,
        body.light-theme .custom-popup .leaflet-popup-tip {
            background: #ffffff !important;
            color: #1f2937 !important;
            border-color: #f43f5e !important;
        }

        .leaflet-control-geocoder {
            border-radius: 8px !important;
            background: #1f2937 !important;
            border: 1px solid #374151 !important;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3) !important;
            overflow: hidden; 
        }
        .leaflet-control-geocoder-icon {
            background-color: transparent !important;
        }
        .leaflet-control-geocoder-form {
            position: relative !important;
        }
        
        .leaflet-control-geocoder-form input {
            color: #ffffff !important;
            background-color: #1f2937 !important;
            padding: 8px 30px 8px 12px !important;
            border-radius: 8px !important;
            width: 250px; 
        }

        .geocoder-clear-btn {
            position: absolute;
            right: 10px;
            top: 50%;
            transform: translateY(-50%);
            cursor: pointer;
            color: #9ca3af;
            font-size: 18px;
            font-weight: bold;
            display: none;
            z-index: 10;
            user-select: none;
            transition: color 0.2s;
        }
        
        .geocoder-clear-btn:hover {
            color: #f43f5e;
        }
        
        .leaflet-control-geocoder-alternatives {
            background-color: #1f2937 !important;
            border-top: 1px solid #374151 !important;
            max-height: 250px !important;
            overflow-y: auto !important;
            border-radius: 0 0 8px 8px !important;
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5) !important;
            margin-top: 0 !important;
        }
        .leaflet-control-geocoder-alternatives li,
        .leaflet-control-geocoder-selected {
            background-color: #1f2937 !important;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
            transition: background-color 0.2s ease;
            padding: 0 !important; 
        }
        .leaflet-control-geocoder-alternatives li:hover {
            background-color: #374151 !important; 
        }
        .leaflet-control-geocoder-alternatives a {
            color: #d1d5db !important; 
            padding: 8px 12px !important; 
            display: block !important;
            text-decoration: none !important;
        }
        .leaflet-control-geocoder-alternatives li:hover a {
            color: #f43f5e !important; 
        }

        body.light-theme .leaflet-control-geocoder {
            background: #ffffff !important;
            border: 1px solid #d1d5db !important;
        }
        body.light-theme .leaflet-control-geocoder-form input {
            color: #111827 !important;
            background-color: #ffffff !important;
        }
        body.light-theme .leaflet-control-geocoder-alternatives {
            background-color: #ffffff !important;
            border-top: 1px solid #e5e7eb !important;
        }
        body.light-theme .leaflet-control-geocoder-alternatives li {
            background-color: #ffffff !important;
            border-bottom: 1px solid #f3f4f6 !important;
        }
        body.light-theme .leaflet-control-geocoder-alternatives li:hover,
        body.light-theme .leaflet-control-geocoder-selected {
            background-color: #f3f4f6 !important;
        }
        body.light-theme .leaflet-control-geocoder-alternatives a {
            color: #374151 !important;
        }
        body.light-theme .leaflet-control-geocoder-alternatives li:hover a {
            color: #e11d48 !important;
        }
        body.light-theme .privacy-btn {
            background-color: rgba(255, 255, 255, 0.95) !important;
            border-color: #d1d5db !important;
            color: #4b5563 !important;
        }
        body.light-theme .privacy-btn:hover {
            color: #e11d48 !important;
        }
        body.light-theme #privacy-modal-content {
            background-color: #ffffff !important;
            border-color: #e5e7eb !important;
        }
        body.light-theme #privacy-modal-content p {
            color: #374151 !important;
        }
        body.light-theme #privacy-modal-content .border-b,
        body.light-theme #privacy-modal-content .border-t {
            border-color: #f3f4f6 !important;
        }
        body.light-theme #privacy-modal-content .bg-gray-700 {
            background-color: #f3f4f6 !important;
        }
        body.light-theme .modal-content {
            background-color: #ffffff !important;
            border-color: #e5e7eb !important;
            color: #374151 !important;
        }
        body.light-theme .modal-content .border-b {
            border-color: #f3f4f6 !important;
        }
        body.light-theme .modal-content p {
            color: #4b5563 !important;
        }
        body.light-theme .modal-content .bg-gray-900\/50 {
            background-color: #f9fafb !important;
            border-color: #e5e7eb !important;
        }

        .reaction-btn {
            background: rgba(31, 41, 55, 0.8);
            border: 1px solid #374151;
            border-radius: 20px;
            padding: 2px 8px;
            font-size: 11px;
            font-weight: 600;
            box-shadow: 0 1px 2px rgba(0,0,0,0.2);
            display: flex;
            align-items: center;
            gap: 4px;
            cursor: pointer;
            transition: all 0.2s;
            color: #9ca3af;
        }
        .reaction-btn:hover:not(:disabled) {
            background: rgba(55, 65, 81, 1);
            border-color: #4b5563;
            transform: scale(1.05);
        }
        .reaction-btn.active {
            background: rgba(244, 63, 94, 0.2);
            border-color: #f43f5e;
            color: #f43f5e;
        }
        .reaction-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
        }
        body.light-theme .reaction-btn {
            background: #f3f4f6;
            border-color: #e5e7eb;
            color: #4b5563;
        }
        body.light-theme .reaction-btn.active {
            background: rgba(225, 29, 72, 0.1);
            border-color: #e11d48;
            color: #e11d48;
        }
            @keyframes pop-in {
                0% { transform: scale(1); }
                50% { transform: scale(1.2); }
                100% { transform: scale(1); }
            }

            .reaction-btn.active span:first-child {
                animation: pop-in 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
            }

            @keyframes slide-up-fade {
                from {
                    opacity: 0;
                    transform: translateY(10px) scale(0.95);
                }
                to {
                    opacity: 1;
                    transform: translateY(0) scale(1);
                }
            }

            [id^="palette-"] {
                animation: slide-up-fade 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
                transform-origin: bottom left;
            }

        .map-type-toggle {
            width: 76px !important;
            height: 76px !important;
            border-radius: 12px !important;
            border: 2px solid #ffffff !important;
            box-shadow: 0 4px 8px rgba(0,0,0,0.4) !important;
            cursor: pointer;
            background-size: cover;
            background-position: center;
            transition: transform 0.2s ease, border-color 0.2s;
            position: relative;
            overflow: hidden;
            margin-bottom: 10px !important;
            background-color: #1f2937;
        }
        body.light-theme .map-type-toggle {
            border-color: #ffffff;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
        }
        .map-type-toggle:hover {
            transform: scale(1.05);
            border-color: #f43f5e;
        }
        .map-type-label {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: rgba(31, 41, 55, 0.85);
            color: #ffffff;
            font-size: 11px;
            text-align: center;
            padding: 3px 0;
            font-weight: 600;
        }

        body.light-theme .adaptive-btn {
            background-color: #ffffff !important;
            color: #1f2937 !important;
            border: 1px solid #d1d5db !important;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
        }

        body.light-theme .adaptive-btn:hover {
            background-color: #f3f4f6 !important;
            border-color: #9ca3af !important;
        }
        
        body.light-theme .adaptive-btn i {
            color: #1f2937 !important;
        }

        body.light-theme header nav a,
        body.light-theme header nav button {
            color: #4b5563 !important;
        }

        body.light-theme header nav a:hover,
        body.light-theme header nav button:hover {
            color: #e11d48 !important;
        }

        body.light-theme #theme-toggle-btn {
            background-color: #f8fafc !important; 
            border: 2px solid #cbd5e1 !important; 
            color: #1e293b !important; 
            box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1) !important;
        }

        body.light-theme #theme-toggle-btn:hover {
            background-color: #e2e8f0 !important;
            border-color: #94a3b8 !important;
        }
        
        .leaflet-bottom.leaflet-left {
            margin-bottom: 50px !important;
            margin-left: 10px !important;
        }

        .leaflet-control-zoom {
            border: 1px solid #374151 !important;
            border-radius: 8px !important;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3) !important;
            overflow: hidden;
            margin-right: 10px !important;
        }
        .leaflet-control-zoom a {
            background-color: #1f2937 !important;
            color: #d1d5db !important;
            border-bottom: 1px solid #374151 !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            line-height: normal !important;
            text-decoration: none !important;
        }
        .leaflet-control-zoom a:hover {
            color: #f43f5e !important;
            background-color: #374151 !important;
        }
        
        body.light-theme .leaflet-control-zoom {
            border-color: #d1d5db !important;
        }
        body.light-theme .leaflet-control-zoom a {
            background-color: #ffffff !important;
            color: #374151 !important;
            border-bottom-color: #e5e7eb !important;
        }
        body.light-theme .leaflet-control-zoom a:hover {
            color: #e11d48 !important;
            background-color: #f3f4f6 !important;
        }
        
        .leaflet-top {
            z-index: 2000 !important;
        }
        .leaflet-bottom {
            z-index: 1000 !important;
        }

        body:not(.light-theme) .osm-dark-tiles {
            filter: brightness(0.6) invert(1) contrast(3) hue-rotate(200deg) saturate(0.3) brightness(0.7);
        }

        .custom-filter-control {
            background-color: #1f2937;
            border: 1px solid #374151;
            border-radius: 8px !important;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
            color: #fff;
            margin-top: 10px !important;
        }
        .custom-filter-button {
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            color: #d1d5db;
            transition: color 0.2s;
        }
        .custom-filter-button:hover, .custom-filter-button.active {
            color: #f43f5e;
        }
        .filter-panel {
            position: absolute;
            top: 40px;
            left: 0;
            width: 320px;
            background-color: #1f2937;
            border: 1px solid #374151;
            border-radius: 8px;
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
            padding: 16px;
            max-height: 60vh;
            overflow-y: auto;
            z-index: 2000;
        }
        body.light-theme .custom-filter-control,
        body.light-theme .filter-panel {
            background-color: #ffffff;
            border-color: #d1d5db;
            color: #111827;
        }
        body.light-theme .custom-filter-button {
            color: #374151;
        }
        body.light-theme .custom-filter-button:hover,
        body.light-theme .custom-filter-button.active {
            color: #e11d48;
        }
        .marker-cluster-small,
        .marker-cluster-medium,
        .marker-cluster-large {
            background-color: rgba(244, 63, 94, 0.25); 
        }
        
        .marker-cluster-small div,
        .marker-cluster-medium div,
        .marker-cluster-large div {
            background-color: #f43f5e; 
            color: white;
            font-weight: bold;
            font-family: inherit;
            border: 2px solid rgba(255, 255, 255, 0.85);
            box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
        }