        /* Map View Specific Styles */
        .reports-map-container {
            max-width: 1200px;
            width: 100%;
            margin: 0 auto;
            padding: 1.5rem;
            min-height: 80vh;
            display: flex;
            flex-direction: column;
        }
        
        .page-header {
          background: linear-gradient(135deg, #f7876b 0%, #ff1452 100%);
          color: white;
          padding: 2rem;
          border-radius: 16px;
          margin-bottom: 2rem;
          box-shadow: 0 8px 25px rgba(247, 135, 107, 0.3);
        }
        
        .page-header h1 { color: #fff; font-size: 2.5rem; margin-bottom: 0.5rem; }
        .page-header p { color: #fff; font-size: 1.1rem; opacity: 0.9; }
        
        .map-controls-panel {
            background: white;
            border-radius: 12px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.1);
            padding: 1.5rem;
            margin-bottom: 1.5rem;
        }
        
        .controls-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1rem;
            margin-bottom: 1rem;
        }
        
        .filter-group {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }
        
        .filter-label {
            font-weight: 600;
            color: #333;
            font-size: 0.9rem;
        }
        
        .filter-select {
            padding: 0.5rem 1rem;
            border: 1px solid #ddd;
            border-radius: 6px;
            font-size: 0.9rem;
            width: 100%;
        }
        
        .controls-actions {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 1rem;
            padding-top: 1rem;
            border-top: 1px solid #eee;
        }
        
        .stats-summary {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            align-items: center;
        }
        
        .stat-badge {
            background: #f8f9fa;
            border: 1px solid #dee2e6;
            border-radius: 20px;
            padding: 0.5rem 1rem;
            font-size: 0.85rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .stat-badge.pet { border-left: 4px solid #28a745; }
        .stat-badge.person { border-left: 4px solid #007bff; }
        .stat-badge.asset { border-left: 4px solid #6f42c1; }
        .stat-badge.urgent { border-left: 4px solid #dc3545; }
        
        .btn-action {
            padding: 0.5rem 1.5rem;
            border-radius: 6px;
            border: none;
            font-weight: 500;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            transition: all 0.3s ease;
        }
        
        .btn-primary {
            //background: #4a6fa5;
            color: white;            
        }
        
        .btn-primary:hover {
            background: #ff1452;
            transform: translateY(-2px);
        }
        
        .btn-secondary {
            background: #6c757d;
            color: white;
        }
        
        .btn-secondary:hover {
            background: #545b62;
        }
        
        .btn-reset {
            background: #f8f9fa;
            color: #6c757d;
            border: 1px solid #dee2e6;
        }
        
        .btn-reset:hover {
            background: #e9ecef;
        }
        
        .main-map-container {
            display: grid;
            grid-template-columns: 1fr 350px;
            gap: 1.5rem;
            height: 600px;
            margin-bottom: 2rem;
        }
        
        @media (max-width: 768px) {
            .main-map-container {
                grid-template-columns: 1fr;
                height: 500px;
            }
            
            .reports-map-container {
                padding: 1rem;
            }
            
            .page-header {
                padding: 1.5rem;
            }
            
            .page-header h1 {
                font-size: 1.8rem;
            }
            
            .map-controls-panel {
                padding: 1rem;
            }
            
            .controls-grid {
                grid-template-columns: 1fr;
            }
            
            .reports-sidebar {
                max-height: 400px;
            }
            
            .map-tools {
                top: 5px;
                right: 5px;
            }
            
            .map-tool-btn {
                width: 32px;
                height: 32px;
            }
        }
        
        @media (max-width: 480px) {
            .main-map-container {
                height: 400px;
            }
            
            .reports-sidebar {
                max-height: 350px;
            }
            
            .page-header h1 {
                font-size: 1.5rem;
            }
        }        
        
        @media (max-width: 1024px) {
            .main-map-container {
                grid-template-columns: 1fr;
                height: 800px;
            }
        }
        
        .map-wrapper {
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 4px 20px rgba(0,0,0,0.1);
            height: 100%;
            position: relative;
        }
        
        #reportsMap {
            height: 100%;
            width: 100%;
        }
        
        .reports-sidebar {
            background: white;
            border-radius: 12px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.1);
            padding: 1.5rem;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            height: 100%;
        }
        
        .sidebar-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
            padding-bottom: 1rem;
            border-bottom: 2px solid #4a6fa5;
        }
        
        .sidebar-title {
            margin: 0;
            color: #333;
            font-size: 1.2rem;
        }
        
        .reports-list {
            flex: 1;
            overflow-y: auto;
        }
        
        .report-card {
            background: #f8f9fa;
            border-radius: 8px;
            padding: 1rem;
            margin-bottom: 1rem;
            border-left: 4px solid #dee2e6;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .report-card:hover {
            background: #e9ecef;
            transform: translateX(5px);
        }
        
        .report-card.active {
            background: #e8f4fd;
            border-left-color: #4a6fa5;
        }
        
        .report-card.pet { border-left-color: #28a745; }
        .report-card.person { border-left-color: #007bff; }
        .report-card.asset { border-left-color: #6f42c1; }
        .report-card.urgent { border-left-color: #dc3545; }
        
        .report-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 0.5rem;
        }
        
        .report-type {
            display: inline-block;
            padding: 0.25rem 0.5rem;
            border-radius: 4px;
            font-size: 0.75rem;
            font-weight: 600;
            color: white;
            text-transform: uppercase;
        }
        
        .type-pet { background: #28a745; }
        .type-person { background: #007bff; }
        .type-asset { background: #6f42c1; }
        
        .report-status {
            font-size: 0.75rem;
            padding: 0.25rem 0.5rem;
            border-radius: 4px;
            background: #6c757d;
            color: white;
        }
        
        .status-open { background: #17a2b8; }
        .status-investigating { background: #ffc107; color: #212529; }
        .status-resolved { background: #28a745; }
        .status-archived { background: #6c757d; }
        
        .report-title {
            font-weight: 600;
            margin: 0.5rem 0;
            color: #333;
            font-size: 1rem;
        }
        
        .report-location {
            font-size: 0.85rem;
            color: #666;
            margin-bottom: 0.5rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .report-time {
            font-size: 0.8rem;
            color: #999;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .report-urgent {
            color: #dc3545;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 0.25rem;
        }
        
        .empty-state {
            text-align: center;
            padding: 3rem 1rem;
            color: #6c757d;
        }
        
        .empty-state i {
            font-size: 3rem;
            margin-bottom: 1rem;
            opacity: 0.5;
        }
        
        .legend-container {
            margin-top: 1.5rem;
            padding-top: 1.5rem;
            border-top: 1px solid #eee;
        }
        
        .legend-title {
            font-weight: 600;
            margin-bottom: 0.75rem;
            color: #333;
        }
        
        .legend-items {
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
        }
        
        .legend-item {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.85rem;
        }
        
        .legend-color {
            width: 16px;
            height: 16px;
            border-radius: 50%;
        }
        
        .legend-color.pet { background: #28a745; }
        .legend-color.person { background: #007bff; }
        .legend-color.asset { background: #6f42c1; }
        .legend-color.urgent { 
            background: repeating-linear-gradient(
                45deg,
                #dc3545,
                #dc3545 5px,
                white 5px,
                white 10px
            );
            border: 1px solid #dc3545;
        }
        
        .map-tools {
            position: absolute;
            top: 10px;
            right: 10px;
            z-index: 1000;
            background: white;
            padding: 0.5rem;
            border-radius: 4px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.2);
            display: flex;
            gap: 0.5rem;
        }
        
        .map-tool-btn {
            width: 36px;
            height: 36px;
            border-radius: 4px;
            border: 1px solid #ddd;
            background: white;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .map-tool-btn:hover {
            background: #f8f9fa;
            border-color: #4a6fa5;
        }
        
        /* Leaflet marker styles - SIMPLIFIED AND CORRECT */
        .custom-marker {
            background: #007bff;
            border-radius: 50%;
            border: 3px solid white;
            box-shadow: 0 2px 5px rgba(0,0,0,0.3);
            display: flex;
            align-items: center;
            justify-content: center;
            width: 30px;
            height: 30px;
        }
        
        .custom-marker.pet {
            background: #28a745;
        }
        
        .custom-marker.person {
            background: #007bff;
        }
        
        .custom-marker.asset {
            background: #6f42c1;
        }
        
        .custom-marker.urgent {
            border-color: #dc3545;
            box-shadow: 0 2px 5px rgba(220,53,69,0.5);
            animation: pulse 2s infinite;
        }
        
        .custom-marker i {
            color: white;
            font-size: 14px;
        }
        
        .temp-marker {
            background: rgba(255, 255, 255, 0.9);
            border-radius: 50%;
            border: 3px solid #ff0000;
            box-shadow: 0 2px 5px rgba(255, 0, 0, 0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            width: 30px;
            height: 30px;
            animation: pulse 1s infinite;
        }
        
        .temp-marker i {
            color: #ff0000;
            font-size: 16px;
        }
        
        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.1); }
            100% { transform: scale(1); }
        }
        
        /* Ensure Leaflet popups look nice */
        .leaflet-popup-content {
            font-family: Arial, sans-serif;
            min-width: 250px;
        }
        
        .leaflet-popup-content h4 {
            margin-top: 0;
        }
        
        /* Full page view styles */
        .fullscreen-mode {
            position: fixed !important;
            top: 0 !important;
            left: 0 !important;
            width: 100vw !important;
            height: 100vh !important;
            max-width: 100vw !important;
            margin: 0 !important;
            padding: 0 !important;
            z-index: 9999 !important;
            background: white;
        }
        
        .fullscreen-mode .page-header,
        .fullscreen-mode .map-controls-panel,
        .fullscreen-mode .reports-sidebar {
            display: none !important;
        }
        
        .fullscreen-mode .main-map-container {
            grid-template-columns: 1fr !important;
            height: 100vh !important;
            margin: 0 !important;
            gap: 0 !important;
        }
        
        .fullscreen-mode .map-wrapper {
            border-radius: 0 !important;
            height: 100vh !important;
        }
        
        .fullscreen-mode .map-tools {
            top: 70px;
            right: 10px;
        }
        
        .fullscreen-toggle {
            position: absolute;
            top: 10px;
            left: 10px;
            z-index: 1000;
            background: white;
            padding: 0.5rem;
            border-radius: 4px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.2);
            display: flex;
            gap: 0.5rem;
        }
        
        .fullscreen-btn {
            width: 36px;
            height: 36px;
            border-radius: 4px;
            border: 1px solid #ddd;
            background: white;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .fullscreen-btn:hover {
            background: #f8f9fa;
            border-color: #4a6fa5;
        }
                
        /* View mode toggle styles */
        .view-mode-toggle-container {
            margin-top: 1rem;
            text-align: center;
        }
        
        .view-mode-btn {
            padding: 0.5rem 1rem;
            border-radius: 6px;
            background: #f8f9fa;
            color: #333;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            border: 1px solid #ddd;
            transition: all 0.3s ease;
            font-size: 0.9rem;
        }
        
        .view-mode-btn:hover {
            background: #4a6fa5;
            color: white;
            border-color: #4a6fa5;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(74, 111, 165, 0.2);
        }
        
        .view-mode-btn.public-active {
            background: #4a6fa5;
            color: white;
            border-color: #4a6fa5;
        }
        
        .view-mode-toggle-container p {
            font-size: 0.85rem;
            color: #666;
            margin-top: 0.5rem;
        }

        /* NEW STYLES FOR PARTNER FILTERS */
        .partner-controls {
            background: #f8f9fa;
            border-radius: 8px;
            padding: 1rem;
            margin-top: 1rem;
            border-left: 4px solid #4a6fa5;
        }
        
        .partner-toggle {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 1rem;
        }
        
        .partner-toggle-label {
            font-weight: 600;
            color: #333;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .partner-toggle-label i {
            color: #4a6fa5;
        }
        
        .partner-toggle-options {
            display: flex;
            gap: 1rem;
        }
        
        .toggle-option {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            cursor: pointer;
        }
        
        .toggle-option input[type="radio"] {
            margin: 0;
        }
        
        .partner-categories {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 0.5rem;
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease;
        }
        
        .partner-categories.expanded {
            max-height: 200px;
            margin-top: 1rem;
        }
        
        .category-checkbox {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.5rem;
            background: white;
            border-radius: 4px;
            border: 1px solid #ddd;
        }
        
        .category-checkbox:hover {
            background: #f0f0f0;
        }
        
        .category-checkbox input[type="checkbox"] {
            margin: 0;
        }
        
        .partner-stat-badge {
            background: white;
            border: 1px solid #dee2e6;
            border-radius: 20px;
            padding: 0.5rem 1rem;
            font-size: 0.85rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-right: 0.5rem;
            margin-bottom: 0.5rem;
        }
        
        /* Partner stat badges - ALL CATEGORIES with consistent naming */
        .partner-stat-badge.dog-park {
            border-left: 4px solid #28a745;
        }
        
        .partner-stat-badge.pet-shop {
            border-left: 4px solid #007bff;
        }
        
        .partner-stat-badge.veterinarian {
            border-left: 4px solid #dc3545;
        }
        
        .partner-stat-badge.pet-friendly-restaurant {
            border-left: 4px solid #ffc107;
        }
        
        .partner-stat-badge.other-places-of-interest {
            border-left: 4px solid #6f42c1;
        }
        
        .partner-stat-badge.pet-grooming-service {
            border-left: 4px solid #20c997;
        }
        
        .partner-stat-badge.pet-friendly-beach {
            border-left: 4px solid #17a2b8;
        }
        
        .partner-stat-badge.search-volunteer-center {
            border-left: 4px solid #fd7e14;
        }
        
        /* Partner markers on map */
        .partner-marker {
            background: #17a2b8;
            border-radius: 50%;
            border: 3px solid white;
            box-shadow: 0 2px 5px rgba(0,0,0,0.3);
            display: flex;
            align-items: center;
            justify-content: center;
            width: 26px;
            height: 26px;
        }
        
        /* Partner markers on map - ALL CATEGORIES with consistent naming */
        .partner-marker.dog-park {
            background: #28a745;
        }
        
        .partner-marker.pet-shop {
            background: #007bff;
        }
        
        .partner-marker.veterinarian {
            background: #dc3545;
        }
        
        .partner-marker.pet-friendly-restaurant {
            background: #ffc107;
        }
        
        .partner-marker.other-places-of-interest {
            background: #6f42c1;
        }
        
        .partner-marker.pet-grooming-service {
            background: #20c997;
        }
        
        .partner-marker.pet-friendly-beach {
            background: #17a2b8;
        }
        
        .partner-marker.search-volunteer-center {
            background: #fd7e14;
        }
        
        .partner-marker i {
            color: white;
            font-size: 12px;
        }
        
        .partners-summary {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-top: 0.5rem;
        }        
        
        /* Partner legend items - ALL CATEGORIES with consistent naming */
        .legend-color.dog-park { background: #28a745; }
        .legend-color.pet-shop { background: #007bff; }
        .legend-color.veterinarian { background: #dc3545; }
        .legend-color.pet-friendly-restaurant { background: #ffc107; }
        .legend-color.other-places-of-interest { background: #6f42c1; }
        .legend-color.pet-grooming-service { background: #20c997; }
        .legend-color.pet-friendly-beach { background: #17a2b8; }
        .legend-color.search-volunteer-center { background: #fd7e14; }
                
        /* Geocoding notification */
        .geocoding-notification {
            background: #fff3cd;
            border: 1px solid #ffeaa7;
            border-radius: 8px;
            padding: 1rem;
            margin-top: 1rem;
            margin-bottom: 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .geocoding-info {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            color: #856404;
        }
        
        .geocoding-info i {
            font-size: 1.2rem;
        }
        
        .geocode-btn {
            background: #f7876b;
            color: white;
            border: none;
            padding: 0.5rem 1rem;
            border-radius: 4px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            text-decoration: none;
        }
        
        .geocode-btn:hover {
            background: #ff1452;
        }
        
        .geocode-btn.disabled {
            background: #eee;
            cursor: not-allowed;
        }
        
        /* Alert messages */
        .alert {
            padding: 1rem;
            border-radius: 8px;
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .alert-success {
            background: #d4edda;
            border: 1px solid #c3e6cb;
            color: #155724;
        }
        
        .alert-warning {
            background: #fff3cd;
            border: 1px solid #ffeaa7;
            color: #856404;
        }
        
        .alert-error {
            background: #f8d7da;
            border: 1px solid #f5c6cb;
            color: #721c24;
        }          